import { Body, Controller, Post } from '@nestjs/common';
import { ProjectsService } from './projects.service';

@Controller('projects')
export class ProjectsController {
    constructor(private readonly projectsService: ProjectsService) { }

    // 创建项目
    @Post('createProject')
    async createProject(@Body() data: any) {
       return this.projectsService.createProject(data)
    }
}
